package bean;

import javax.persistence.Entity;
import javax.persistence.Id;

@Entity
public class User{

    private String id;
    @Id//第三方dgut绑定的工号
    private String username;
    private String passwd;
    private String email;
    private String img;
    public User() {}
    public User(String username,String email,String passwd,String img)
    {
        this.username=username;
        this.passwd=passwd;
        this.email=email;
        this.img=img;
        this.id=null;
    }
    public User(String username,String email,String passwd)
    {
        this.username=username;
        this.passwd=passwd;
        this.email=email;
        this.img=null;
        this.id=null;
    }
    public User(String username,String email,String passwd,String img,String id)
    {
        this.username=username;
        this.passwd=passwd;
        this.email=email;
        this.img=img;
        this.id=id;
    }

    public String getUsername() {
        return username;
    }

    public String getEmail() {
        return email;
    }

    public String getPasswd() {
        return passwd;
    }

    public String getImg() { return img;}

    public String getId() { return id; }

    public void setUsername(String username) {
        this.username = username;
    }

    public void setPasswd(String passwd) {
        this.passwd = passwd;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public void setImg(String img) { this.img = img; }

    public void setId(String id) {this.id=id;}
}
